#include <QtGui/QApplication>
#include "mainwindow.h"

#include "Login/login.h"
#include <QObject>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;

    Login *L = new Login();
    L->show();
    QObject::connect(L,SIGNAL(showGUI()),&w,SLOT(processShowGUI()));
    QObject::connect(L,SIGNAL(loginRequest(QByteArray)),&w,SLOT(sendPackage(QByteArray)));
    QObject::connect(&w,SIGNAL(dispatchDataToLogin(MSGHeader,QByteArray)),L,SLOT(processLoginResponse(MSGHeader,QByteArray)));


    //w.show();
    return a.exec();
}
